package com.lsc.model;

public class Composant {

	private String id;
	private String nom;
	private String desc;
	private String img;
	private int qteStock;
	private int qteAlerte;
	
	
	/**
	 * constructeurs initialisant tous  les attributs
	 * @param id l'identifiant du composant
	 * @param nom le nom du composant
	 * @param img l'image associée
	 * @param qteStock la quantité stockée
	 * @param qteAlerte la quantité d'alerte
	 */
	public Composant(String id, String nom, String img, int qteStock,
			int qteAlerte) {
		super();
		this.id = id;
		this.nom = nom;
		this.img = img;
		this.qteStock = qteStock;
		this.qteAlerte = qteAlerte;
	}
	
	/**
	 * Constructeur vide
	 */
	public Composant(){
		
	}
	
	/* accesseurs */
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getNom() {
		return nom;
	}
	public void setNom(String nom) {
		this.nom = nom;
	}
	public String getImg() {
		return img;
	}
	public void setImg(String img) {
		this.img = img;
	}
	public int getQteStock() {
		return qteStock;
	}
	public void setQteStock(int qteStock) {
		this.qteStock = qteStock;
	}
	public int getQteAlerte() {
		return qteAlerte;
	}
	public void setQteAlerte(int qteAlerte) {
		this.qteAlerte = qteAlerte;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}

	@Override
	public String toString() {
		return "Composant [id=" + id + ", nom=" + nom + ", desc=" + desc
				+ ", img=" + img + ", qteStock=" + qteStock + ", qteAlerte="
				+ qteAlerte + "]";
	}

	
}
